package com.three.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @TableName tb_product_review
 */
@TableName(value ="tb_product_review")
@Data
public class ProductReview implements Serializable {
    private Integer id;

    private Integer productId;

    private Integer userId;

    private String content;

    private Integer rating;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private Product product;
    @TableField(exist = false)
    private Store store;

    private static final long serialVersionUID = 1L;
}